package binance.model

class Stock {
    String url
    Double value
    Double highest
    Double lowest
    String time
    String code
    Double diff
    Double diffproc
    Currency currency
    String name
    Stocklist stocklist

    static belongsTo = Stocklist
    static hasMany = [stocks:Stock]
    
    String toString(){
        return name + " at " + stocklist.stockmarket + " / "+stocklist;
    }
}
